const express = require(`express`);
const router = express.Router();

const userCtrl = require("../controller/LCXCtrl");

//获取所有套餐
router.get("/getAllPackages", userCtrl.selectUserInfo);

//添加体检套餐
router.post("/addSet", userCtrl.addSet);

//获取所有城市
router.get("/getCities", userCtrl.getCities);

//删除套餐
router.post("/deleteSet", userCtrl.deleteSet);

//搜索套餐
router.post("/searchSet", userCtrl.searchSet);

//获取单个体检套餐
router.post("/getSingleSet", userCtrl.getSingleSet);

// 查询所有机构
router.get("/getAllOrganization", userCtrl.getAllOrganization);

//获取所有体检项目
router.get("/getAllSingleSet", userCtrl.getAllSingleSet);

//体检项目查询
router.post("/searchSingleSet", userCtrl.searchSingleSet);

//删除体检单项
router.post("/deleteSingleSet", userCtrl.deleteSingleSet);

//体检单项开关接口
router.post("/switchStatus", userCtrl.switchStatus);

//tianjia 单项
router.post("/addSingleSet", userCtrl.addSingleSet);

//bianji danxiang
router.post("/editSingleSet", userCtrl.editSingleSet);

//批量删除单个体检项目
router.post("/deleteMoreSingleSet", userCtrl.deleteMoreSingleSet);

//查询机构
router.post("/searchSingleOri", userCtrl.searchSingleOri);

//删除单个机构
router.post("/deleteOri", userCtrl.deleteOri);

//批量删除机构
router.post("/deleteMoreOri", userCtrl.deleteMoreOri);

//用户注册

router.post("/addUser", userCtrl.addUser);

//用户登入,查找数据库用户

router.post("/searchUser", userCtrl.searchUser);

//id查询用户
router.post("/searchUserById", userCtrl.searchUserById);

//收藏查询
router.post("/getCollections", userCtrl.getCollections);

//收藏添加
router.post("/addCollection", userCtrl.addCollection);

//收藏删除

//机构开关接口
router.post("/orgSwitchStatus", userCtrl.orgSwitchStatus);

module.exports = router;
